if (!(component instanceof EntityBeanComponent)) {
throw EjbLogger.ROOT_LOGGER.unexpectedComponent(component, EntityBeanComponent.class);
}
final EntityBeanComponent entityBeanComponent = (EntityBeanComponent) component;
//grab an unasociated entity bean from the pool
final EntityBeanComponentInstance instance = entityBeanComponent.acquireUnAssociatedInstance();
//call the ejbCreate method
final Object primaryKey = invokeEjbCreate(context, ejbCreate, instance, params);
instance.associate(primaryKey);
clientInstance.setViewInstanceData(EntityBeanComponent.PRIMARY_KEY_CONTEXT_KEY, primaryKey);