class ResourceChecker {

    public void checkIfPodIsUsable(final DataCenter dataCenter, final HostPodVO hostPod) {
        final long hostPodId = hostPod.getId();
        logger.debug("Checking if pod " + hostPodId + " is usable.");
        if (!hostPod.belongsToDataCenter(dataCenter.getId())) {
            final String hostPodUuid = hostPod.getUuid();
            final String dataCenterUuid = dataCenter.getUuid();
            final InvalidParameterValueException ex =
                    new InvalidParameterValueException("Pod with specified pod " + hostPodUuid + " doesn't belong to the zone with specified dataCenter " + dataCenterUuid);
            ex.addProxyObject(hostPodUuid, "podId");
            ex.addProxyObject(dataCenterUuid, "dcId");
            throw ex;
        }
        logger.debug("Pod " + hostPodId + "is usable");
    }

    private  ResourceChecker(final Builder builder);

}