code: void setPrincipal(int type, String principalName) {
  
          m_rpc.setPrincipal(type, principalName);
          // forcing the RPC to be executed immediately
          getConnection().getHeartbeat().send();
      }
docs: Sets the principal.<p>
  
  @param type the principal type
  @param principalName the principal name