/** Obtains the <code>Class</code> object for the enterprise Bean's primary key class. */ public Class<?> getPrimaryKeyClass() { if (session) throw Logs.MAIN.primaryKeyNotRelevantForSessionBeans(); return pkClass; }