Rather than do the instanceof check i would simply inject the LocalWorkspaceCatalog with a reference to the GeoServer facade in the spring context.