Validate executor pattern

Pattern is taken from AppDefinition.scala.