CLOUDIFY-1865 Added generics to validator interface