Migrating SSM Custom Value pages to java