public static UUID fromUUIDAsURNStringToUUID(String UUIDasURN){
  if (!UUIDasURN.startsWith(UUIDHelper.UUID_as_a_URN_PREFIX)) {
    IMFErrorLogger imfErrorLogger=new IMFErrorLoggerImpl();
    imfErrorLogger.addError(IMFErrorLogger.IMFErrors.ErrorCodes.UUID_ERROR,IMFErrorLogger.IMFErrors.ErrorLevels.FATAL,String.format("Input UUID %s " + "does not start with %s",UUIDasURN,UUIDHelper.UUID_as_a_URN_PREFIX));
    throw new IMFException(String.format("Input UUID %s does not start with %s",UUIDasURN,UUIDHelper.UUID_as_a_URN_PREFIX),imfErrorLogger);
  }
  return UUID.fromString(UUIDasURN.split(UUIDHelper.UUID_as_a_URN_PREFIX)[1]);
}

public static UUID fromUUIDAsURNStringToUUID ( String UUIDasURN ) { if ( ! UUIDasURN . startsWith ( UUIDHelper . UUID_as_a_URN_PREFIX ) ) { IMFErrorLogger imfErrorLogger = new IMFErrorLoggerImpl ( ) ; imfErrorLogger . addError ( IMFErrorLogger . IMFErrors . ErrorCodes . UUID_ERROR , IMFErrorLogger . IMFErrors . ErrorLevels . FATAL , String . format ( "Input UUID %s " + "does not start with %s" , UUIDasURN , UUIDHelper . UUID_as_a_URN_PREFIX ) ) ; throw new IMFException ( String . format ( "Input UUID %s does not start with %s" , UUIDasURN , UUIDHelper . UUID_as_a_URN_PREFIX ) , imfErrorLogger ) ; } return UUID . fromString ( UUIDasURN . split ( UUIDHelper . UUID_as_a_URN_PREFIX ) [ 1 ] ) ; }
a helper method to return the uuid without the " urn : uuid : " prefix
