final String roleName = roles[ i ].getRole();
final ServiceDescriptor service =
info.getDependency( roleName ).getService();
//Get the other block that is providing service
final BlockMetaData other = getBlock( blockName, others );
if( null == other )
{
final String message =
REZ.getString( "dependency-noblock", blockName, block.getName() );
throw new VerifyException( message );
}
//make sure that the block offers service
//that user expects it to be providing
final ServiceDescriptor[] services = other.getBlockInfo().getServices();
if( !hasMatchingService( service, services ) )
{
final String message =
REZ.getString( "dependency-noservice", blockName, service, block.getName() );
throw new VerifyException( message );