Program: 86000
Project: 86000
Buggy source:
/** 
 * Creates a new <a href="PartMaster.html">PartMaster</a>. Be aware that the created item will still be in checkout state when returned. Hence the calling client code has the opportunity to perform final modifications on the first, iteration number 1, <a href="PartIteration.html">PartIteration</a>.
 * @param workspaceId The workspace in which the part master will be created
 * @param number The part number of the item to create which is its id inside the workspace
 * @param name The user friendly name of the item
 * @param standardPart Boolean indicating if the item to create is a standard part
 * @param workflowModelId The id of the workflow template that will be instantiated and attached to the created part master. Actually, it's the first  <a href="PartRevision.html">PartRevision</a> that will hold the reference to the workflow. Obviously this parameter may be null, it's not mandatory to rely on workflows for product definitions. 
 * @param partRevisionDescription The description of the first revision, version A, of the item. This revision will be created in the same time than the <a href="PartMaster.html">PartMaster</a> itself.
 * @param templateId The id of the template to use to instantiate the part, may be null. Refers to a <a href="PartMasterTemplate.html">PartMasterTemplate</a>.
 * @param roleMappings Role mapping for the selected workflow model
 * @param userEntries ACL user entries
 * @param userGroupEntries ACL group entries
 * @return The created part master instance
 * @throws NotAllowedException
 * @throws UserNotFoundException
 * @throws WorkspaceNotFoundException
 * @throws AccessRightException
 * @throws WorkflowModelNotFoundException
 * @throws PartMasterAlreadyExistsException
 * @throws CreationException
 */
PartMaster createPartMaster(String workspaceId,String number,String name,boolean standardPart,String workflowModelId,String partRevisionDescription,String templateId,Map<String,String> roleMappings,ACLUserEntry[] userEntries,ACLUserGroupEntry[] userGroupEntries) throws NotAllowedException, UserNotFoundException, WorkspaceNotFoundException, AccessRightException, WorkflowModelNotFoundException, PartMasterAlreadyExistsException, CreationException, PartMasterTemplateNotFoundException, FileAlreadyExistsException, RoleNotFoundException ;

Fixed version (ground truth):
/** 
 * Creates a new <a href="PartMaster.html">PartMaster</a>. Be aware that the created item will still be in checkout state when returned. Hence the calling client code has the opportunity to perform final modifications on the first, iteration number 1, <a href="PartIteration.html">PartIteration</a>.
 * @param workspaceId The workspace in which the part master will be created
 * @param number The part number of the item to create which is its id inside the workspace
 * @param name The user friendly name of the item
 * @param standardPart Boolean indicating if the item to create is a standard part
 * @param workflowModelId The id of the workflow template that will be instantiated and attached to the created part master. Actually, it's the first  <a href="PartRevision.html">PartRevision</a> that will hold the reference to the workflow. Obviously this parameter may be null, it's not mandatory to rely on workflows for product definitions. 
 * @param partRevisionDescription The description of the first revision, version A, of the item. This revision will be created in the same time than the <a href="PartMaster.html">PartMaster</a> itself.
 * @param templateId The id of the template to use to instantiate the part, may be null. Refers to a <a href="PartMasterTemplate.html">PartMasterTemplate</a>.
 * @param roleMappings Role mapping for the selected workflow model
 * @param userEntries ACL user entries
 * @param userGroupEntries ACL group entries
 * @return The created part master instance
 * @throws NotAllowedException
 * @throws UserNotFoundException
 * @throws WorkspaceNotFoundException
 * @throws AccessRightException
 * @throws WorkflowModelNotFoundException
 * @throws PartMasterAlreadyExistsException
 * @throws CreationException
 * @throws PartMasterTemplateNotFoundException
 * @throws FileAlreadyExistsException
 * @throws RoleNotFoundException
 */
PartMaster createPartMaster(String workspaceId,String number,String name,boolean standardPart,String workflowModelId,String partRevisionDescription,String templateId,Map<String,String> roleMappings,ACLUserEntry[] userEntries,ACLUserGroupEntry[] userGroupEntries) throws NotAllowedException, UserNotFoundException, WorkspaceNotFoundException, AccessRightException, WorkflowModelNotFoundException, PartMasterAlreadyExistsException, CreationException, PartMasterTemplateNotFoundException, FileAlreadyExistsException, RoleNotFoundException ;