public boolean isRequired(){
  return required;
}

public boolean isRequired ( ) { return required ; }
this is used to determine if the generated annotations are required or not . by default generated parameters are required . setting this to false means that null values are accepted by all defaulted fields or methods depending on the type .
