code: public static GlobusPrincipal toGlobusPrincipal(GSSName name) {
  	return (!name.isAnonymous() &&
  		(name instanceof GlobusGSSName)) ?
  	    new GlobusPrincipal(name.toString()) :
  	    null;
      }
docs: Converts the specified GSSName to GlobusPrincipal.
  The GSSName is converted into the GlobusPrincipal
  only if the GSSName is of type
  <code>org.globus.gsi.gssapi.GlobusGSSName</code>
  and the name is not anonymous.