src/edu/kit/informatik/Utilities.java
/**
     * Instantiates a new {@linkplain EntityAlreadyExistsException}
     * @param type the type corresponding to the already existing object
     * @param args extra parameters for the error message
     * @return a new exception instance
     */
Instantiates a new  EntityAlreadyExistsException
@param type the type corresponding to the already existing object
@param args extra parameters for the error message
@return a new exception instance
Instantiates a new EntityAlreadyExistsException @param type the type corresponding to the already existing object @param args extra parameters for the error message @return a new exception instance
public static EntityAlreadyExistsException alreadyExist(
            final Class<?> type, final Object... args) {
        return new EntityAlreadyExistsException(Stream.of(args).map(String::valueOf)
                .collect(Collectors.joining(", ", "exist already " + type.getSimpleName() + ": ", "")));
    }
public static EntityAlreadyExistsException alreadyExist ( final Class < ? > type , final Object ... args ) { return new EntityAlreadyExistsException ( Stream . of ( args ) . map ( String :: valueOf ) . collect ( Collectors . joining ( ", " , "exist already " + type . getSimpleName ( ) + ": " , "" ) ) ) ; }
Instantiates a new {@linkplain EntityAlreadyExistsException}
 @param type the type corresponding to the already existing object
 @param args extra parameters for the error message
 @return a new exception instance
Instantiates a new { @linkplain EntityAlreadyExistsException } @param type the type corresponding to the already existing object @param args extra parameters for the error message @return a new exception instance
//TODO improve message