@Override protected AbstractCapability createCapability(AbstractResource resource, String namespace, Map<String, Object> attributes, Map<String, String> directives) { if (ContentNamespace.CONTENT_NAMESPACE.equals(namespace)) { return new DefaultContentCapability(resource, namespace, attributes, directives); } else { return new DefaultCapability(resource, namespace, attributes, directives); } }