MemberRoleAccessBean m = new MemberRoleAccessBean();
Enumeration mEnum = m.findByMemberIdRoleId(cmdContext.getUserId(),Integer.valueOf("-29"));
Enumeration sEnum = null;
if(mEnum.hasMoreElements()){
m =(MemberRoleAccessBean)mEnum.nextElement();
StoreEntityAccessBean stAb = new StoreEntityAccessBean();
sEnum = stAb.findByMember(Long.valueOf(m.getOrgEntityId()));
if (sEnum.hasMoreElements()){
stAb =(StoreEntityAccessBean)sEnum.nextElement();
storeId = stAb.getStoreEntityId();
}
}