Modify class loader for better compatibility with newer versions of JWS
Fix: Set hibernate options whith remote server when specified
Modify queries: Use hibernate Criteria instead of HQL. This offers better performance because allows Hibernate to make more powerfull queries