public static void addOperation ( final OperationContext context ) { RbacSanityCheckOperation added = context . getAttachment ( KEY ) ; if ( added == null ) { // TODO support managed domain if ( ! context . isNormalServer ( ) ) return ; context . addStep ( createOperation ( ) , INSTANCE , Stage . MODEL ) ; context . attach ( KEY , INSTANCE ) ; } }
Add the operation at the end of Stage MODEL if this operation has not already been registered .