private Application loadApplication(ZipEntry zipentry, ZipInputStream zipinputstream, String name) throws IOException, IllegalAccessException, InstantiationException {
String groovyString = new String(ByteStreams.toByteArray(zipinputstream), "UTF-8");
GroovyClassLoader gcl = new GroovyClassLoader();
Class clazz = gcl.parseClass(groovyString);
Object aScript = clazz.newInstance();
Application application = (Application) aScript;
applicationContext.getAutowireCapableBeanFactory().autowireBean(application);