class ShortArrayToListResolveDependencyStrategy implements IResolveDependencyStrategy {

    @Override
    public <T> T resolve(final Object... args) throws ResolveDependencyStrategyException {
        try {

            short[] shorts = (short[]) args[0];
            List<Short> result = new ArrayList<>(shorts.length);
            for (short aShort : shorts) {
                result.add(aShort);
            }

            return (T) result;
        } catch (Exception e) {
            throw new ResolveDependencyStrategyException("Can't create list from short array.", e);
        }
    }

}