public static String guestServletPath(AtmosphereConfig config) { String servletPath = ""; if (config.getServletConfig() != null) { servletPath = getCleanedServletPath(guestRawServletPath(config)); } else { throw new IllegalStateException("Unable to configure jsr356 at that stage"); } return servletPath; }