private final Application originalApp;
private final DefaultResourceConfig adaptedApp;
private ApplicationHolder(ProviderFactory pf) {
final ComponentProvider cp = pf.getComponentProvider(appClass);
if (cp == null) {
throw new ContainerException("The Application class " + appClass.getName() + " could not be instantiated");
}
this.originalApp = (Application)cp.getInstance();
if ((originalApp.getClasses() == null || originalApp.getClasses().isEmpty()) &&
(originalApp.getSingletons() == null || originalApp.getSingletons().isEmpty())) {
LOGGER.info("Instantiated the Application class " + appClass.getName() +
". The following root resource and provider classes are registered: " + defaultClasses);