jWPS is a set of Java classes for working with the WPS and EAs.
This lets you program many WPS objects using Java. At the least, a simple utility provided will allow you to manipulate EAs very easily in Java.