* @param operatingSystem
* @return a policy to match the operating system
*/
static ExecutableMatchPolicy createOperatingSystemPolicy( final String operatingSystem )
{
return new ExecutableMatchPolicy()
{
public boolean match( ExecutableCapability executableCapability )
{
String os = executableCapability.getOperatingSystem().toLowerCase().trim();
return ( operatingSystem.toLowerCase().trim().contains( os ) );