class ResourceChecker {

    public DataCenterVO checkIfDataCenterExists(final Long dataCenterId) {
        logger.debug("Checking if data center" + dataCenterId + " exists");
        final DataCenterVO zone = dataCenterDao.findById(dataCenterId);
        if (zone == null) {
            final InvalidParameterValueException e = new InvalidParameterValueException("Can't find data center by the id: " + dataCenterId);
            e.addProxyObject(String.valueOf(dataCenterId), "dcId");
            throw e;
        }
        logger.debug("Data center " + dataCenterId + "exists");
        return zone;
    }

    private  ResourceChecker(final Builder builder);

}