else if (Environment.class.equals(entityClass)) {
return Restrictions.eq("owner", owner);
}
else if (OwnerProduct.class.equals(entityClass)) {
return Restrictions.eq("owner", owner);
<BUG>}
return null;</BUG>
}
@Override
public Owner getOwner() {

else if (Environment.class.equals(entityClass)) {
return Restrictions.eq("owner", owner);
}
else if (OwnerProduct.class.equals(entityClass)) {
return Restrictions.eq("owner", owner);
}
else if (OwnerContent.class.equals(entityClass)) {
return Restrictions.eq("owner", owner);
}
return null;
}
@Override
public Owner getOwner() {
