question: static void checkAccess ( ManagementPermission p ) throws SecurityException { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkPermission ( p ) ; } }
target:  Check that the current context is trusted to perform monitoring or management. <p> If the check fails we throw a SecurityException, otherwise we return normally.