// TODO: this is maybe not the best location for this functionality??
protected void setClientOrganization(Object o) {
final OBContext obContext = OBContext.getOBContext();
if (o instanceof ClientEnabled) {
final ClientEnabled ce = (ClientEnabled) o;
// reread the client
if (ce.getClient() == null) {
final Client client = SessionHandler.getInstance().find(Client.class,
obContext.getCurrentClient().getId());
ce.setClient(client);
}
}
if (o instanceof OrganizationEnabled) {
final OrganizationEnabled oe = (OrganizationEnabled) o;
// reread the client and organization