class CacheKeyBuilderImpl implements CacheKeyBuilder {

    @Override
    public String getAssignCacheKey(final AnnotationData data) {
        if (data == null || data.getAssignedKey() == null || data.getAssignedKey().length() < 1) {
            throw new InvalidParameterException("Ids for objects in the cache must be at least 1 character long.");
        }
        return data.getNamespace() + SEPARATOR + data.getAssignedKey();
    }

}