class DBIMADeviceStateManager extends DBDeviceStateManager implements IMADeviceStateManager {

    @Override
    public final IMADeviceState getState(final Device device)
            throws IMADeviceStateManagerException {
        try {
            return (IMADeviceState) super.getState(device, IMADeviceState.class);
        } catch (DeviceStateManagerException e) {
            throw new IMADeviceStateManagerException(e);
        }
    }

    public  DBIMADeviceStateManager(final SessionFactory factory);

}