class MapperUtils {

  public static UnresolvedMosaicId toUnresolvedMosaicId(String hex) {
    if (hex == null) {
      return null;
    }
    if ((ConvertUtils.getBytes(hex)[0] & 128) == 128) {
      return toNamespaceId(hex);
    } else {
      return toMosaicId(hex);
    }
  }

  private  MapperUtils();

}