code: public static int getActiveJobs(GSSCredential cred) {
  	if (cred == null) {
  	    throw new IllegalArgumentException("cred == null");
  	}
  	CallbackHandler handler = (CallbackHandler)callbackHandlers.get(cred);
  	return (handler == null) ? 0 : handler.getRegisteredJobsSize();
      }
docs: Returns number of jobs currently running
  for a specified credential (one credential one callback handler)
  
  @return number of jobs running for given credential