You can use the Forms Services Platform API to create and connect your pipes.
You can use the Java™ Access API to communicate directly with the Forms Services Platform from a Java application.