static void cleanup ( final Resource resource ) { synchronized ( resource ) { for ( final Resource . ResourceEntry entry : resource . getChildren ( SUBSYSTEM ) ) { resource . removeChild ( entry . getPathElement ( ) ) ; } for ( final Resource . ResourceEntry entry : resource . getChildren ( SUBDEPLOYMENT ) ) { resource . removeChild ( entry . getPathElement ( ) ) ; } } }
Cleans up the subsystem children for the deployment and each sub - deployment resource .