if (cust_proj_file == null) {
GeoServerResourceLoader loader = GeoServerExtensions.bean(GeoServerResourceLoader.class);
if( loader != null ){ // not available during construction SystemTestData - call CRS reset to fix
Resource custom_proj = loader.get("user_projections/epsg.properties");
if( custom_proj.getType() == Type.RESOURCE ){
cust_proj_file = custom_proj.file().getAbsolutePath();
}
}
}
if( cust_proj_file != null ){
// Attempt to load user-defined projections