class ObjectArrayToListResolveDependencyStrategy implements IResolveDependencyStrategy {

    @Override
    public <T> T resolve(final Object... args) throws ResolveDependencyStrategyException {
        try {
            return (T) Arrays.asList(args);
        } catch (Exception e) {
            throw new ResolveDependencyStrategyException("Can't create list from array.", e);
        }
    }

}