private Property processXmlMap(XmlMap xmlMap, Property oldProperty) {
    XmlMap.Key mapKey = xmlMap.getKey();
    XmlMap.Value mapValue = xmlMap.getValue();

    if (mapKey != null && mapKey.getType() != null) {
      oldProperty.setKeyType(jModelInput.getJavaModel().getClass(mapKey.getType()));
    } else {
      oldProperty.setKeyType(jModelInput.getJavaModel().getClass("java.lang.Object"));
    }

    if (mapValue != null && mapValue.getType() != null) {
      oldProperty.setValueType(jModelInput.getJavaModel().getClass(mapValue.getType()));
    } else {
      oldProperty.setValueType(jModelInput.getJavaModel().getClass("java.lang.Object"));
    }

    return oldProperty;
  }