You can also do it the fun way, with REST, through the Deploy API. Under 3.5 you see how to get the wanted information. Be sure to check out the outher API's too for some nice possibilities.
EDIT: An examble to set it up (but maybe the java way would be a lot easier for you right now)
Use the JSON snippet on the documentation page for creating a new JSON structure in Mendix and use that for creating an import mapping.