SQL subroutines handler for Java