// component.addExtensibilityElement(getExtensibilityElement(policy));
// }
private static PolicyExtensibilityElement getExtensibilityElement(
Object policyElement) {
PolicyExtensibilityElement element = (PolicyExtensibilityElement) (new ExtensionFactoryImpl())
.getExtensionElement(ExtensionConstants.POLICY);
element.setPolicyElement(policyElement);
return element;
}