add JDBC sample
refactoring DerbyConnectionFactory#getConnection()