{
PropertyInfo keyProp = null;
PropertyInfo valueProp = null;
for(PropertyInfo prop : entryBean.getProperties())
{
JBossXmlMapKey key = prop.getUnderlyingAnnotation(JBossXmlMapKey.class);
if(key != null)
{
if(keyProp != null)
throw new IllegalStateException(
"Found two properties in entry type " + entryBean.getName() +