Don't use boolean parameters, the calling code is difficult to understand.

Create a static factory method instead:

```java
public static RestContractItem createMultipart(String pattern, String verb) {
  // etc.
}
```