public static boolean isUUId(Object obj){
  String str=Caster.toString(obj,null);
  if (str == null)   return false;
  if (str.length() == 35) {
    return Decision.isHex(str.substring(0,8)) && str.charAt(8) == '-' && Decision.isHex(str.substring(9,13)) && str.charAt(13) == '-' && Decision.isHex(str.substring(14,18)) && str.charAt(18) == '-' && Decision.isHex(str.substring(19));
  }
 else   if (str.length() == 32)   return Decision.isHex(str);
  return false;
}

public static boolean isUUId ( Object obj ) { String str = Caster . toString ( obj , null ) ; if ( str == null ) return false ; if ( str . length ( ) == 35 ) { return Decision . isHex ( str . substring ( 0 , 8 ) ) && str . charAt ( 8 ) == '-' && Decision . isHex ( str . substring ( 9 , 13 ) ) && str . charAt ( 13 ) == '-' && Decision . isHex ( str . substring ( 14 , 18 ) ) && str . charAt ( 18 ) == '-' && Decision . isHex ( str . substring ( 19 ) ) ; } else if ( str . length ( ) == 32 ) return Decision . isHex ( str ) ; return false ; }
tests if string value is uuid value
