code: @Override
  	public JobInstance createSubJobInstance(String name, String apptag) {
  		Connection conn = null;
  		PreparedStatement statement = null;
  		ResultSet rs = null;
  		JobInstanceImpl jobInstance = null;
  
  		try {
  			conn = getConnection();
  			statement = conn.prepareStatement("INSERT INTO jobinstancedata (name, apptag) VALUES(?, ?)", new String[] { "JOBINSTANCEID" } );
  			statement.setString(1, name);
  			statement.setString(2, apptag); 
  			statement.executeUpdate();
  			rs = statement.getGeneratedKeys();
  			if(rs.next()) {
  				long jobInstanceID = rs.getLong(1);
  				jobInstance = new JobInstanceImpl(jobInstanceID);
  				jobInstance.setJobName(name);
  			}
  		} catch (SQLException e) {
  			throw new PersistenceException(e);
  		} finally {
  			cleanupConnection(conn, rs, statement);
  		}
  		return jobInstance;
  	}
docs: /* (non-Javadoc)
  @see com.ibm.jbatch.container.services.IPersistenceManagerService#createJobInstance(java.lang.String, java.lang.String, java.lang.String, java.util.Properties)