Retrieve Object in 4.0

I am trying to use Core.retrieveId() java action to retrieve the an object from the cache, however i need to give it a Mendix Identifier. I have the long version of the identifier as i need to pass it back to a microflow to do some logic before calling the java action. Therefore i cannot pass the MendixIdentifier. How can i convert the long version of the MendixIdentifier back into a Mendix Identifier? Or is there some way to retrieve the correct Mendix Identifier from the long?
1 answers

use Core.createMendixIdentifier() (or the string version)

I am just curious how you are obtaining a guid as a long.