ClassFactory classFactory = new ClassFactoryImpl();
EnhancementOperationImpl op = new EnhancementOperationImpl(new DefaultClassResolver(),
specification, BasePage.class, classFactory, null);
InjectMessagesWorker injectMessages = new InjectMessagesWorker();
injectMessages.setComponentMessagesSource(source);
injectMessages.performEnhancement(op, specification);
new InjectSpecificationWorker().performEnhancement(op, specification);
IPage result = (IPage) op.getConstructor().newInstance();