@Override
protected List<AttributeTypeInfo> load() {
try {
FeatureTypeInfo typeInfo = (FeatureTypeInfo) getDefaultModelObject();
Catalog catalog = GeoServerApplication.get().getCatalog();
final ResourcePool resourcePool = catalog.getResourcePool();
return resourcePool.getAttributes(typeInfo);
} catch (Exception e) {
LOGGER.log(Level.SEVERE, "Grabbing the attribute list failed", e);
String error = new ParamResourceModel("attributeListingFailed", FeatureResourceConfigurationPanel.this, e.getMessage()).getString();
FeatureResourceConfigurationPanel.this.getPage().error(error);
return Collections.emptyList();