public static String parseUUIDFromURI(URI id){
  return (id != null) ? parsePartFromURI(id.toString(),UUID_PARTS_COUNT) : null;
}

public static String parseUUIDFromURI ( URI id ) { return ( id != null ) ? parsePartFromURI ( id . toString ( ) , UUID_PARTS_COUNT ) : null ; }
get the uuid embedded in the uri string , or null if none
