class JdbcDriverServiceImpl implements JdbcDriverService, ApplicationContextAware {

    @Override
    public synchronized boolean isRegistered(String driverClass) {

        boolean registered = true;

        try {
            this.register(driverClass);
        } catch (Exception e) {
            registered = false;
        }

        return registered;
    }

}