fixed getPathwayAs method
encode gpml to prevent errors with special characters
added java code example
Merge branch 'master' of https://github.com/mkutmon/WP-REST-webservice