@Override
public List<CategoryProductXref> getActiveProductXrefs() {
BroadleafRequestContext context = BroadleafRequestContext.getBroadleafRequestContext();
if (context != null && context.getAdditionalProperties().containsKey("blCategoryEntityExtensionManager")) {
CategoryEntityExtensionManager extensionManager = (CategoryEntityExtensionManager) context.getAdditionalProperties().get("blCategoryEntityExtensionManager");
ExtensionResultHolder holder = new ExtensionResultHolder();
ExtensionResultStatusType result = extensionManager.getProxy().getActiveProductXrefs(this, holder);
if (ExtensionResultStatusType.HANDLED.equals(result)) {
return (List<CategoryProductXref>) holder.getResult();
}
}
List<CategoryProductXref> result = new ArrayList<CategoryProductXref>();
for (CategoryProductXref product : allProductXrefs) {
if (product.getProduct().isActive()) {