public boolean isDirectChildOfAccount ( final Account effectiveAccount , final Account operatedAccount ) { return operatedAccount . getParentSid ( ) . equals ( effectiveAccount . getSid ( ) ) ; }
Checks if the operated account is a direct child of effective account