I have a requirement to move a subset of data (documents and folders) from one alfresco instance running on 4.0.2 to another instance running on 4.2.3 What would be the best way to achieve this? I want to use a java program to do this?
Please don't cross post. I've deleted them for you.
You should really upgrade your 4.0.2 instance to 4.2.3 and then transfer or import/export or copy via an API. Whether you need to upgrade depends upon whether there are any model migrations. You may be lucky.