Hi,
IOP you should use the proxy classes to create and manipulate mendix objects in java actions. When you are done call the getMendixObject() function to get the object in the right return type as is required from the java action.
Creating a new proxy object is the same as creating any other java object.
new SomeMendixEntity(getContext());
-Andrej