public static String createNameIdentifier(){
  String handle=null;
  try {
    byte[] handleBytes=new byte[21];
    randomGenerator.nextBytes(handleBytes);
    handle=Base64.encode(handleBytes);
    if (debug.messageEnabled()) {
      debug.message("createNameIdentifier String: " + handle);
    }
  }
 catch (  Exception e) {
    debug.message("createNameIdentifier:" + " Exception during proccessing request" + e.getMessage());
  }
  return handle;
}

public static String createNameIdentifier ( ) { String handle = null ; try { byte [ ] handleBytes = new byte [ 21 ] ; randomGenerator . nextBytes ( handleBytes ) ; handle = Base64 . encode ( handleBytes ) ; if ( debug . messageEnabled ( ) ) { debug . message ( "createNameIdentifier String: " + handle ) ; } } catch ( Exception e ) { debug . message ( "createNameIdentifier:" + " Exception during proccessing request" + e . getMessage ( ) ) ; } return handle ; }
returns a name identifier
